package com.xiyu.service.vo.setting.poolSetting;

import com.xiyu.service.vo.customer.pool.baseVO.CustomerPoolMaxLimitBase;
import com.xiyu.service.vo.customer.pool.baseVO.CustomerPoolMaxLimitPostBase;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;

import jakarta.validation.Valid;
import com.xiyu.service.enums.common.CommonStatusEnum;
import com.xiyu.service.framework.validation.InEnum;
import org.springframework.format.annotation.DateTimeFormat;
    import static com.xiyu.service.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
    import java.time.LocalDateTime;

@Schema(description = "查询最大客户限制")
@Data
@AllArgsConstructor
public class PoolSettingQueryMaxLimitOutput extends CustomerPoolMaxLimitBase {

    @Schema(description = "更新时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime updateTime;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime createTime;

    @Schema(description = "最大客户限制主键ID")
    private Long id;

    @Schema(description = "最大客户限制岗位")
    @Valid
    private List<limitPost> limitPosts;

    @Schema(description = "岗位")
    @Data
    public static class post {

        @Schema(description = "岗位名称", example = "小博主")
        private String name;
    }

    @Schema(description = "最大客户限制岗位")
    @Data
    public static class limitPost extends CustomerPoolMaxLimitPostBase {

        @Schema(description = "岗位")
        private post post;
    }
}